<?php
class Zend_View_Helper_IsRequired extends Zend_View_Helper_Abstract
{
    public $view;

    public function isRequired($field)
    {
        return isset($this->view->validators[$field]['presence']) ? '*' : '';
    }

    public function setView(Zend_View_Interface $view)
    {
        $this->view = $view;
    }
}
?>
